package com.wq.gof.designer.decorate;

import org.apache.log4j.Logger;

/**
 * @Author: wangqiang20995
 * @Date:2018/11/4
 * @Description:
 * @Resource:
 */
public class JackClothing implements ClothingDecorate {

    private Logger logger = Logger.getLogger(getClass());

    private ClothingDecorate clothingDecorate;

    public JackClothing(ClothingDecorate clothingDecorate){
        this.clothingDecorate = clothingDecorate;
    }

    @Override
    public void describeDecorator() {
        clothingDecorate.describeDecorator();
        logger.info("这是一件外套");
    }

    @Override
    public double cost() {
        return clothingDecorate.cost() + 293.4;
    }
}
